; {{ ansible_managed }}

[wordpress]
listen = /var/run/php-fpm-wordpress.sock
listen.owner = www-data
listen.group = www-data
user = {{ web_user }}
group = {{ web_group }}
pm = {{ php_fpm_pm }}
pm.max_children = {{ php_fpm_pm_max_children }}
pm.start_servers = {{ php_fpm_pm_start_servers }}
pm.min_spare_servers = {{ php_fpm_pm_min_spare_servers }}
pm.max_spare_servers = {{ php_fpm_pm_max_spare_servers }}
pm.max_requests = {{ php_fpm_pm_max_requests }}
chdir = {{ www_root }}/
php_flag[log_errors] = on
php_flag[display_errors] = {{ php_display_errors }}
php_admin_value[open_basedir] = {{ www_root }}/:/tmp
{% if memcached_sessions %}
php_value[session.save_handler] = memcached
php_value[session.save_path] = "{{ memcached_listen_ip }}:{{ memcached_port }}"
{% endif %}
